/**
 * Created by xiongxin on 17/8/8.
 */

(function(app, angular) {

    app.controller('addContactCtrl', ['$scope',  function($scope) {

        $scope.maskLayer = false;   // 遮罩层显示与否
        $scope.subMenu = false;    //二级菜单显示

        $scope.selectContact = function(){
            ($scope.maskLayer == true) ? $scope.maskLayer = false : $scope.maskLayer = true;
        };
        //显示二级菜单
        $scope.selectMenu = function(){
            ($scope.subMenu == true) ? $scope.subMenu = false : $scope.subMenu = true;
        };
        //部门所有人
        $scope.allContactArr = contactPhones[0].nameChild.contact;



    }]);
})(app, angular);

